package com.atguigu.jxc.service.impl;


import com.atguigu.jxc.dao.SaleListMapper;
import com.atguigu.jxc.entity.SaleList;
import com.atguigu.jxc.entity.SaleListGoods;

import com.atguigu.jxc.service.SaleListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: jxc
 * @description: 客户统计支付结算
 * @author: ZJH
 * @create: 2023-02-11 10:52
 **/
@Service
@SuppressWarnings("all")
public class SaleListServiceImpl implements SaleListService {
    @Autowired
    private SaleListMapper saleListMapper;

    /**
     * 支付结算（修改销售单付款状态）
     * @param saleListId
     */
    @Override
    public void updateState(Integer saleListId) {
        SaleList saleList = new SaleList();
        saleList.setState(1);
        saleList.setSaleListId(saleListId);
        saleListMapper.updateById(saleList);
    }
}
